<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <style>
        *{ padding: 0px; margin: 0px;}
        td,tr{ border:1px solid #69C; font-size: 14px;}
        #nav a{ margin: 0 10px; color:blue; display:inline-block; padding: 5px; }
        #nav a:hover{ color: red;}
        #nav .now{ background: #006699; color: white;}
    </style>
</head>
<body>
<div>
    <table width="800" border="0" style="text-align:center; line-height:40px; margin:20px; padding:0px; border:1px solid #69C;border-collapse:collapse;" >
        <tr style="background: #69C">
            <td width="20%">选择</td>
            <td width="20%">用户名称</td>
            <td width="20%">注册时间</td>
            <td width="20%">用户资料</td>
            <td width="20%">操作</td>

        </tr>
        <% userlist.forEach(function(data){ %>
        <tr>
            <td><input type="checkbox" name="columnid" value="<%=data._id%>" /></td>
            <td>昵称：<%=data.nickname%><br />
                用户名：<%=data.name%>
            </td>
            <td><%=(new Date(data.date).getFullYear()+"-"+(new Date(data.date).getMonth()+1)+"-"+new Date(data.date).getDate())%></td>
            <td>性别：<%=data.sex%><br>QQ：<%=data.qq%><br>是否在线：<%if(data.isonline==0){%>
                <font color="black">离线</font><%}else{%><font color="red"> 在线</font><%}%>
                <br></td>

            <td><a href="/mycenter/lookuser?id=<%=data._id%>">查看</a>　　<a href="/mycenter/deluser?id=<%=data._id%>">删除</a>　　</td>

        </tr>
      <% }) %>
    </table>
    <p id="nav" ><%-nav%></p>
</div>
</body>
</html>